package net.pws.common.security.spi;

public class DefaultPrincipal implements Principal {
    
    private static final long serialVersionUID = 1L;
    
    private String id;
    
    private String name;
    
    private String groupCode;
    
    private Object detail;
    
    private boolean privileged;
    
    private boolean webAccessAllowed;
    
    private boolean mobileAccessAllowed;
    
    private Role[] roles;
    
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getGroupCode() {
        return groupCode;
    }
    
    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }
    
    public boolean hasPrivileged() {
        return privileged;
    }
    
    public void setPrivileged(boolean privileged) {
        this.privileged = privileged;
    }
    
    public boolean isWebAccessAllowed() {
        return webAccessAllowed;
    }
    
    public void setWebAccessAllowed(boolean webAccessAllowed) {
        this.webAccessAllowed = webAccessAllowed;
    }
    
    public boolean isMobileAccessAllowed() {
        return mobileAccessAllowed;
    }
    
    public void setMobileAccessAllowed(boolean mobileAccessAllowed) {
        this.mobileAccessAllowed = mobileAccessAllowed;
    }
    
    public Object getDetail() {
        return detail;
    }
    
    public void setDetail(Object detail) {
        this.detail = detail;
    }
    
    public Role[] getRoles() {
        return roles;
    }
    
    public void setRoles(Role[] roles) {
        this.roles = roles;
    }
    
}
